package com.yonyou.gmmc.service.pointactivity.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 预约信息模型对象
 * 
 * @author baodu
 *
 */
@Table(name = "TT_RETURN_FACTORY_RESERVE")
public class TtReturnFactoryReserve {
	// 定义属性与数据库字段关联
	@Id
	@Column(name = "RESERVE_ID")
	@GeneratedValue(generator = "JDBC")
	private Integer reserveId; // 主键

	@Column(name = "OPEN_ID")
	private String openId; // 微信id

	@Column(name = "DEALER_CODE")
	private String dealerCode; // 经销商编码

	@Column(name = "PROVINCE")
	private String province; // 省份

	@Column(name = "CITY")
	private String city; // 城市

	@Column(name = "RESERVE_DATE")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date reserveDate; // 预约时间

	@Column(name = "CREATE_DATE")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createDate; // 创建时间

	@Column(name = "UPDATE_DATE")
	private Date updateDate; // 更新时间

	@Column(name = "CREATE_BY")
	private Integer createBy; // 创建人

	@Column(name = "UPDATE_BY")
	private Integer updateBy; // 修改人

	@Column(name = "DEALER_NAME") // 经销商名称
	private String dealerName;

	@Column(name = "VIN") // VIN
	private String vin;

	public String getVin() {
		return vin;
	}

	public void setVin(String vin) {
		this.vin = vin;
	}

	public String getDealerName() {
		return dealerName;
	}

	public void setDealerName(String dealerName) {
		this.dealerName = dealerName;
	}

	public Integer getReserveId() {
		return reserveId;
	}

	public void setReserveId(Integer reserveId) {
		this.reserveId = reserveId;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public String getDealerCode() {
		return dealerCode;
	}

	public void setDealerCode(String dealerCode) {
		this.dealerCode = dealerCode;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public Date getReserveDate() {
		return reserveDate;
	}

	public void setReserveDate(Date reserveDate) {
		this.reserveDate = reserveDate;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	public Integer getCreateBy() {
		return createBy;
	}

	public void setCreateBy(Integer createBy) {
		this.createBy = createBy;
	}

	public Integer getUpdateBy() {
		return updateBy;
	}

	public void setUpdateBy(Integer updateBy) {
		this.updateBy = updateBy;
	}

}
